/**
 * 2017年11月14日
 */
package exp.algorithm.sic.feature;

import java.util.ArrayList;
import java.util.List;

import exp.algorithm.sic.ScalePeak;
import exp.algorithm.sic.TimeSeries;

/**
 * 特征点检测的,也就是默认寻找Peak的方式,通过寻找极值点
 * @author Alex
 *
 */
public class DensePeakFinder implements PeakFinder {
	public static final int STEP = 10;
	@Override
	public List<ScalePeak> find(float dogThresh, TimeSeries[] diffImags) {
		ArrayList<ScalePeak> peaks = new ArrayList<ScalePeak>();
		for(int i = 0 ;i<diffImags.length;i++){
			TimeSeries ts = diffImags[i];
			for(int j =0 ; j < ts.data.length; j += STEP){
				peaks.add(new ScalePeak(j, i));
			}
		}
		return (peaks);
		
	}

}
